package com.sf.business.appointment.qo;

import java.util.Calendar;
import java.util.Date;

public class BusCheckoutQO {
    private Date beginActualArrivalTime;

    private Date endActualArrivalTime;

    public Date getEndActualArrivalTime() {
        return endActualArrivalTime;
    }

    public void setEndActualArrivalTime(Date endActualArrivalTime) {
        Calendar instance = Calendar.getInstance();
        if (endActualArrivalTime != null ) {
            instance.setTime(endActualArrivalTime);
            instance.add(Calendar.DAY_OF_MONTH, 1);
            endActualArrivalTime = instance.getTime();
        }
        this.endActualArrivalTime = endActualArrivalTime;
    }

    public Date getBeginActualArrivalTime() {
        return beginActualArrivalTime;
    }

    public void setBeginActualArrivalTime(Date beginActualArrivalTime) {
        this.beginActualArrivalTime = beginActualArrivalTime;
    }
}
